package com.my.study.algorithm.leetcode.huwei;

import java.util.Scanner;
import java.util.TreeSet;

/**
 * @author Carlos
 * @version 1.0.0
 * @date 2023/2/27 8:24
 */
public class RandomNumber {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        while (sc.hasNext()) {
            int num = sc.nextInt();
            TreeSet treeSet = new TreeSet();
            for (int i = 0; i < num; i++) {
                treeSet.add(sc.nextInt());
            }

            for (Object o : treeSet) {
                System.out.println(o);
            }

        }

    }
    
}